﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace ERPStore.Web.NewsLetters
{
	public class NewsLetterViewEngine : RazorViewEngine
	{
		public NewsLetterViewEngine() : base()
		{
			var path = ERPStore.NewsLetters.Configuration.ConfigurationSettings.AppSettings["virtualFilePath"];
			if (!path.StartsWith("views"))
			{
				base.ViewLocationFormats = new string[] 
				{	
					path + "/{0}.cshtml",
					path + "/{1}/{0}.cshtml",
				};
			}
		}
	}
}
